<%@ page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
		<%@ include file="./head.jsp" %>
		<TABLE height=339 cellSpacing=0 cellPadding=0 width="100%"
			align=center border=0>	
			<TBODY>
				<TR>
					<TD vAlign=top align=middle height=330>
						<IMG id=img1
							style="FILTER: revealTrans(Transition = 1, Duration = 1.5)"
							height="360" src="image/company.jpg" width=100%>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
		<TABLE height=339 cellSpacing=0 cellPadding=0 width="100%"
			bgColor=#ffffff border=0>
			<TBODY>
				<TR>
					<TD vAlign=top height=339>
						&nbsp;
					</TD>
					<TD vAlign=top width=1003>
						<TABLE cellSpacing=0 cellPadding=0 width="100%" align=right
							border=0>
							<TBODY>
								<TR>
									<TD width=1 bgColor=#e9e9e9 height=391></TD>
									<TD vAlign=top width=243 bgColor=#ffffff>
										<TABLE cellSpacing=0 cellPadding=0 width=230 align=center
											border=0>
											<TBODY>
												<TR>
													<TD height=5></TD>
												</TR>
												<TR>
													<TD>
														<IMG height=32 src="image/1_1[1].jpg" width=230>
													</TD>
												</TR>
												<TR>
													<TD>
														<table align="center" border="0" cellpadding="0" cellspacing="0" width="225" id="product_mode_id" style="display:none">
													          <tbody>
														           <tr>
														             <td class="sy_prd_fll" align="left"><a href="" id="products_a_id">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;保险杠喷涂</a></td>
														           </tr>
          													  </tbody>
   														</table>
													</TD>
												</TR>
												<TR>
													<TD>
														&nbsp;
													</TD>
												</TR>
												<TR>
													<TD align=middle height=6></TD>
												</TR>
											</TBODY>
										</TABLE>
									</TD>
									<TD width=1 bgColor=#e9e9e9></TD>
									<TD vAlign=top width=498>
										<TABLE cellSpacing=0 cellPadding=0 width="96%" align=center
											border=0>
											<TBODY>
												<TR>
													<TD colSpan=2 height=5></TD>
												</TR>
												<TR>
													<TD width="86%" height=24>
														<STRONG>新闻中心</STRONG>
													</TD>
													<TD align=right width="14%">
														<A href="./home/news.do">+更多</A>
													</TD>
												</TR>
												<TR>
													<TD colSpan=2 height=32>
														<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
															<TBODY>
																<TR>
																	<TD width="37%" rowSpan=2>
																		<IMG src="image/2011112110534644.jpg">
																	</TD>
																	<TD width="63%">
																		<DIV align=left>
																			<TABLE cellSpacing=0 cellPadding=0 width="100%"
																				border=0>
																				<TBODY>
																					<TR>
																							<TD width=40 height=24><IMG height=11 src="image/ICON_HOT.gif" width=29></TD>
																							<TD><A title=慕尼黑上海电子展 href="#" id="first_news_id">慕尼黑上海电子展 .. </A></TD>
																					</TR>
																					<TR>
																						<TD background="image/xxs[1].gif"
																							colSpan=2 height=1></TD>
																					</TR>
																				</TBODY>
																			</TABLE>
																		</DIV>
																	</TD>
																</TR>
																<TR>
																	<TD class="eed STYLE4">
																		<P>
																			<FONT face="Times New Roman" id="first_news_content">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>
																		</P>
																	</TD>
																</TR>
															</TBODY>
														</TABLE>
													</TD>
												</TR>
												<TR>
													<TD colSpan=2 height=32>
														<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
															<TBODY>
																<TR>
																	<TD>
																		&nbsp;
																	</TD>
																</TR>
															</TBODY>
														</TABLE>
														 
														<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 id="news_table_model" style="display:none">
																<TBODY>
																	<TR>
																		<TD align=middle width=24 height=28><IMG height=7 src="image/tb.jpg" width=4></TD>
																		<TD width=348><A title=慕尼黑上海电子展 href="#" id="news_title_id">慕尼黑上海电子展 .. </A></TD>
																		<TD align=middle width=165><SPAN class=STYLE4 id="news_date_id">2013-3-15</SPAN></TD>
																	</TR>
																	<TR>
																		<TD background="image/xxs[1].gif" colSpan=3 height=1></TD>
																	</TR>
																</TBODY>
														</TABLE>
													</TD>
												</TR>
												<TR>
														<TD height=28><STRONG>公司概述</STRONG></TD>
														<TD align=right><A href="./home/about.do">+更多</A></TD>
												</TR>
												<TR>
													<TD colSpan=2 height=32>
														<P class=eed>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;上海寇文自动化工程有限公司大部分员工来自全球知名机器人集团公司，具有丰富的机器人自动化设计，管理与服务经验。公司主要专注于机器人自动化系统的设计，研发及服务。始终坚持‘致力于工业机器人系统工程，致力于客户百分之百满意度’为宗旨。谨始慎初，善终如初。 <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR></P>
													</TD>
												</TR>
											</TBODY>
										</TABLE>
									</TD>
									<TD width=1 bgColor=#e9e9e9></TD>
									<TD vAlign=top align=middle width=240>
										<TABLE cellSpacing=0 cellPadding=0 border=0>
											<TBODY>
												<TR>
													<TD height=5></TD>
												</TR>
												 
												<TR>
													<TD>
														<IMG height=32 src="image/1_2[1].jpg" width=230>
													</TD>
												</TR>
												<TR>
													<TD>
														&nbsp;
													</TD>
												</TR>
												<TR>
													<TD height="38">
														<strong style="color:#808080">总部热线：<font color="#808090" id="tel_id"></font></strong>
													</TD>
												</TR>
												<TR>
													<TD height="38">
														<strong style="color:#808080">总部传真：<font color="#808090" id="fax_id"></font></strong>
													</TD>
												</TR>
												<TR>
													<TD height="38">
														<strong style="color:#808080">联系手机：<font color="#808090" id="mobile_id"></font></strong>
													</TD>
												</TR>
												
												<TR>
													<TD height="38">
														<strong style="color:#808080">电子邮件：<font color="#808090" id="email_id"></font></strong>
													</TD>
												</TR>
											</TBODY>
										</TABLE>
									</TD>
									<TD width=1 bgColor=#e9e9e9></TD>
								</TR>
								<TR>
									<TD bgColor=#e9e9e9 height=170></TD>
									<TD vAlign=top bgColor=#ffffff colSpan=5>
										<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center
											bgColor=#ffffff border=0>
											<TBODY>
												<TR>
													<TD bgColor=#eeeeee height=1></TD>
												</TR>
												<TR>
													<TD style="PADDING-LEFT: 20px; PADDING-TOP: 5px"
														bgColor=#f7f7f7>
														<!--下面是向左滚动代码-->
														<DIV id=colee_left style="OVERFLOW: hidden; WIDTH: 960px">
															<TABLE cellSpacing=0 cellPadding=0 border=0>
																<TBODY>
																	<TR>
																		<TD id=colee_left1 vAlign=top align=middle>
																			<TABLE cellSpacing=0 cellPadding=2 border=0>
																				<TBODY>
																					<TR align=middle>
																						<TD id="compress_pic_model">
																							<TABLE cellSpacing=1 cellPadding=5 width="100%"
																								bgColor=#cccccc border=0>
																								<TBODY>
																									<TR>
																										<TD
																											bgColor=#ffffff>
																											<A href="#" id="pic_a_id1">
																												<IMG src="image/simplePic/1.jpg" height=140 width="175" id="pic_img_id1" border="0"/>
																											</A>
																										</TD>
																									</TR>
																								</TBODY>
																							</TABLE>
																						</TD>
																						
																						<TD id="compress_pic_model">
																							<TABLE cellSpacing=1 cellPadding=5 width="100%"
																								bgColor=#cccccc border=0>
																								<TBODY>
																									<TR>
																										<TD
																											bgColor=#ffffff>
																											<A href="#" id="pic_a_id2">
																												<IMG src="image/simplePic/2.jpg" height=140 width="175" id="pic_img_id2" border="0"/>
																											</A>
																										</TD>
																									</TR>
																								</TBODY>
																							</TABLE>
																						</TD>
																						
																						<TD id="compress_pic_model">
																							<TABLE cellSpacing=1 cellPadding=5 width="100%"
																								bgColor=#cccccc border=0>
																								<TBODY>
																									<TR>
																										<TD
																											bgColor=#ffffff>
																											<A href="#" id="pic_a_id3">
																												<IMG src="image/simplePic/3.jpg" width="175" height=140 id="pic_img_id3" border="0"/>
																											</A>
																										</TD>
																									</TR>
																								</TBODY>
																							</TABLE>
																						</TD>
																						
																						<TD id="compress_pic_model">
																							<TABLE cellSpacing=1 cellPadding=5 width="100%"
																								bgColor=#cccccc border=0>
																								<TBODY>
																									<TR>
																										<TD
																											bgColor=#ffffff>
																											<A href="#" id="pic_a_id4">
																												<IMG src="image/simplePic/4.jpg" height=140 width="175" id="pic_img_id4" border="0"/>
																											</A>
																										</TD>
																									</TR>
																								</TBODY>
																							</TABLE>
																						</TD>
																						
																						<TD id="compress_pic_model">
																							<TABLE cellSpacing=1 cellPadding=5 width="100%"
																								bgColor=#cccccc border=0>
																								<TBODY>
																									<TR>
																										<TD
																											bgColor=#ffffff>
																											<A href="#" id="pic_a_id5">
																												<IMG src="image/simplePic/5.jpg" height=140 width="175" id="pic_img_id5" border="0"/>
																											</A>
																										</TD>
																									</TR>
																								</TBODY>
																							</TABLE>
																						</TD>
																					</TR>
																				</TBODY>
																			</TABLE>
																		</TD>
																	</TR>
																</TBODY>
															</TABLE>
														</DIV>

														<!--向左滚动代码结束-->
													</TD>
												</TR>
											</TBODY>
										</TABLE>
									</TD>
									<TD bgColor=#e9e9e9></TD>
								</TR>
							</TBODY>
						</TABLE>
					</TD>
					<TD vAlign=top>
						&nbsp;
					</TD>
				</TR>
			</TBODY>
		</TABLE>
		<%@ include file="./foot.jsp" %>
		<script>
	
			$(function(){
				jQuery.ajax( {
					type : 'GET',
					url : './products/getByPage.do?currPage=1',
					dataType : 'json',
					success : function(obj) {
						for(var i = 0 ;i<obj.productsList.length;i++){
					          		var html = $('#product_mode_id').html();
					          		var newTr = '<table align="center" border="0" cellpadding="0" cellspacing="0" width="225">'+html+'</table>';
					          		var newTrObj = $('#product_mode_id').after(newTr).next();
					          		newTrObj.find('#products_a_id').html('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+obj.productsList[i].name);
					          		newTrObj.find('#products_a_id').attr("href","./home/productDetail.do?id="+obj.productsList[i].id);
					          		
					     }
					},
					error : function() {
						alert('error');
					}
				});
				
				jQuery.ajax( {
					type : 'GET',
					url : './products/getByHomeMark.do',
					dataType : 'json',
					success : function(obj) {
						for(var i = 0 ;i<obj.productsList.length;i++){
							var n = i+1;
					        $('#pic_a_id'+n).attr("href","./home/productDetail.do?id="+obj.productsList[i].id);
				          	$('#pic_img_id'+n).attr("src","./upload/downloadCompress.do?fileName="+obj.productsList[i].picName);
					     }
					},
					error : function() {
						alert('error');
					}
				});
				
				jQuery.ajax( {  
			          type : 'GET', 
			          url : './news/getNewsByPage.do?currPage=1',  
			          dataType : 'json', 
			          async:false, 
			          success : function(obj) {
			          if(obj.news.length == 0){
			          	return;
			          }
			          var len = obj.news.length-1;
				          $('#first_news_id').html(obj.news[len].title+"...");
			    		  $('#first_news_id').attr("href","./home/newsDetail.do?id="+obj.news[len].id);
		   		 	 	  
		   		 	 	  var content = obj.news[len].content;
		   		 	 	  var proContent = "";
		   		 	 	  if(content.length<=70){
		   		 	 	  	proContent = content;
		   		 	 	  }else{
		   		  		  	proContent = content.substring(0,70);
		   		  		  }
		   		  		  $('#first_news_content').html('&nbsp;&nbsp;&nbsp;&nbsp;'+proContent+'...');
			    		  var n = obj.news.length;
			    		  if(obj.news.length >3){
			    		  	n = 3;
			    		  }
			          	  for(var i = 0 ;i<n;i++){
			          		var html = $('#news_table_model').html();
			          		var newTr = '<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>'+html+'</table>';
			          		var newTrObj = $('#news_table_model').after(newTr).next();
			          		newTrObj.find('#news_title_id').html(obj.news[i].title);
			          		newTrObj.find('#news_title_id').attr("href","./home/newsDetail.do?id="+obj.news[i].id);
			          		newTrObj.find('#news_date_id').html(obj.datas[i]);
			          	}
			          },  
			          error : function(data) {  
			            alert("error")  
			          }  
		         }); 
		         
		         jQuery.ajax( {
				type : 'GET',
				url : 'contact/list.do',
				dataType : 'json',
				success : function(obj) {
					$('#tel_id').html(obj.contact.tel);
					$('#fax_id').html(obj.contact.fax);
					$('#mobile_id').html(obj.contact.mobile);
					$('#email_id').html(obj.contact.email);
				},
				error : function() {
				}
			});
			});
		</script>
		
	</BODY>
</html>
